
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>ListView读取DB数据最佳实践 · 梦里茶</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.2">
        <meta name="author" content="陈伟航">
        
        
    
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-disqus/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-toggle-chapters/toggle.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../styles/website.css">
        
    
        
    
        
    
        
    
        
    
        
    


    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="Android_project结构.html" />
    
    
    <link rel="prev" href="chromium/" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="./">
            
                <a href="./">
            
                    
                    Android
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="activity/">
            
                <a href="activity/">
            
                    
                    activity
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1.1" data-path="activity/Activity四种启动模式.html">
            
                <a href="activity/Activity四种启动模式.html">
            
                    
                    Activity四种启动模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.2" data-path="activity/INTENT_FLAG.html">
            
                <a href="activity/INTENT_FLAG.html">
            
                    
                    Intent Flag
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.3" data-path="activity/多TASK的应用.html">
            
                <a href="activity/多TASK的应用.html">
            
                    
                    多task的应用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.1.4" data-path="activity/Task和回退栈.html">
            
                <a href="activity/Task和回退栈.html">
            
                    
                    Task和回退栈
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="sqlite/">
            
                <a href="sqlite/">
            
                    
                    sqlite
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.2.1" data-path="sqlite/从源码看ANDROID中SQLITE是怎么通过CURSORWINDOW读DB的.html">
            
                <a href="sqlite/从源码看ANDROID中SQLITE是怎么通过CURSORWINDOW读DB的.html">
            
                    
                    【源码】CursorWindow读DB
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2.2" data-path="sqlite/SQLITE在ANDROID上的一个BUG.html">
            
                <a href="sqlite/SQLITE在ANDROID上的一个BUG.html">
            
                    
                    Sqlite在Android上的一个Bug
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="chromium/">
            
                <a href="chromium/">
            
                    
                    Chromium
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.2.4" data-path="listview_db.html">
            
                <a href="listview_db.html">
            
                    
                    ListView读取DB数据最佳实践
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="Android_project结构.html">
            
                <a href="Android_project结构.html">
            
                    
                    Android Project结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="一个由PROGUARD与FASTJSON引起的血案.html">
            
                <a href="一个由PROGUARD与FASTJSON引起的血案.html">
            
                    
                    一个由Proguard与FastJson引起的血案
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="note.html">
            
                <a href="note.html">
            
                    
                    琐碎的一些tips
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../ml/">
            
                <a href="../ml/">
            
                    
                    Machine Learning
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../ml/trick/">
            
                <a href="../ml/trick/">
            
                    
                    技巧
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1.1" data-path="../ml/trick/imgnet_1h.html">
            
                <a href="../ml/trick/imgnet_1h.html">
            
                    
                    FaceBook: 1 hour training ImageNet
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.1.2" data-path="../ml/trick/l2_normalize.html">
            
                <a href="../ml/trick/l2_normalize.html">
            
                    
                    L2 Norm与L2 normalize
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../ml/pratice/ncs.html">
            
                <a href="../ml/pratice/ncs.html">
            
                    
                    实践
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../ml/kit/">
            
                <a href="../ml/kit/">
            
                    
                    工具
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.3.1" >
            
                <a target="_blank" href="https://github.com/ahangchen/GDLNotes">
            
                    
                    Tensorflow学习笔记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.2" data-path="../ml/kit/caffe/mscnn.html">
            
                <a href="../ml/kit/caffe/mscnn.html">
            
                    
                    mscnn
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3.3" data-path="../ml/matlab/">
            
                <a href="../ml/matlab/">
            
                    
                    Matlab
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.3.3.1" data-path="../ml/matlab/ripc_auto.html">
            
                <a href="../ml/matlab/ripc_auto.html">
            
                    
                    Matlab Remote IPC自动化数据处理
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../ml/papers/">
            
                <a href="../ml/papers/">
            
                    
                    讲座论文系列
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.4.1" data-path="../ml/reid/">
            
                <a href="../ml/reid/">
            
                    
                    Re-identification
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.4.1.1" data-path="../ml/papers/TFusion.html">
            
                <a href="../ml/papers/TFusion.html">
            
                    
                    CVPR2018:TFusion完全解读
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.1.2" data-path="../ml/reid/reid.html">
            
                <a href="../ml/reid/reid.html">
            
                    
                    Person Re-identification
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.1.3" data-path="../ml/reid/cvpr-reid.html">
            
                <a href="../ml/reid/cvpr-reid.html">
            
                    
                    CVPR2016 Re-id
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.1.4" data-path="../ml/reid/reid-topo.html">
            
                <a href="../ml/reid/reid-topo.html">
            
                    
                    Camera topology and Person Re-id
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.1.5" data-path="../ml/reid/deep_transfer_learning_person_reid.html">
            
                <a href="../ml/reid/deep_transfer_learning_person_reid.html">
            
                    
                    Deep transfer learning Person Re-id
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.1.6" data-path="../ml/reid/evaluate.html">
            
                <a href="../ml/reid/evaluate.html">
            
                    
                    Evaluate
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.4.2" data-path="../ml/papers/detection/">
            
                <a href="../ml/papers/detection/">
            
                    
                    Object Detection
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.4.2.1" data-path="../ml/papers/detection/rcnn.html">
            
                <a href="../ml/papers/detection/rcnn.html">
            
                    
                    读论文系列·干货满满的RCNN
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.2.2" data-path="../ml/papers/detection/sppnet.html">
            
                <a href="../ml/papers/detection/sppnet.html">
            
                    
                    读论文系列·SPP-net
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.2.3" data-path="../ml/papers/detection/fast_rcnn.html">
            
                <a href="../ml/papers/detection/fast_rcnn.html">
            
                    
                    读论文系列·Fast RCNN
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.2.4" data-path="../ml/papers/detection/faster_rcnn.html">
            
                <a href="../ml/papers/detection/faster_rcnn.html">
            
                    
                    读论文系列·Faster RCNN
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.2.5" data-path="../ml/papers/detection/yolo.html">
            
                <a href="../ml/papers/detection/yolo.html">
            
                    
                    读论文系列·YOLO
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.2.6" data-path="../ml/papers/detection/ssd.html">
            
                <a href="../ml/papers/detection/ssd.html">
            
                    
                    读论文系列·SSD
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.2.7" data-path="../ml/papers/detection/yolo23.html">
            
                <a href="../ml/papers/detection/yolo23.html">
            
                    
                    读论文系列·YOLOv2 & YOLOv3
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.2.8" data-path="../ml/papers/detection/other.html">
            
                <a href="../ml/papers/detection/other.html">
            
                    
                    读论文系列·detection其他文章推荐
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.4.3" >
            
                <span>
            
                    
                    Hashing
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.4.3.1" data-path="../ml/papers/hashing/ssah.html">
            
                <a href="../ml/papers/hashing/ssah.html">
            
                    
                    CVPR2018: SSAH
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.4.4" >
            
                <span>
            
                    
                    大杂烩
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.4.4.1" data-path="../ml/papers/cncc2017.html">
            
                <a href="../ml/papers/cncc2017.html">
            
                    
                    CNCC2017 琐记
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.4.2" data-path="../ml/papers/eccv2016_hydra_ccnn.html">
            
                <a href="../ml/papers/eccv2016_hydra_ccnn.html">
            
                    
                    ECCV 2016 Hydra CCNN
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.4.3" data-path="../ml/papers/cncc_cv.html">
            
                <a href="../ml/papers/cncc_cv.html">
            
                    
                    CNCC2017深度学习与跨媒体智能
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4.4.4" data-path="../ml/papers/mla_2016.html">
            
                <a href="../ml/papers/mla_2016.html">
            
                    
                    MLA2016笔记
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../ml/zzh_ml_notes.html">
            
                <a href="../ml/zzh_ml_notes.html">
            
                    
                    《机器学习》（周志华）读书笔记
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.5.1" data-path="../ml/melon/">
            
                <a href="../ml/melon/">
            
                    
                    西瓜书概念整理
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.5.1.1" data-path="../ml/melon/ch01.html">
            
                <a href="../ml/melon/ch01.html">
            
                    
                    绪论
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.2" data-path="../ml/melon/ch02.html">
            
                <a href="../ml/melon/ch02.html">
            
                    
                    模型评估与选择
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.3" data-path="../ml/melon/ch03.html">
            
                <a href="../ml/melon/ch03.html">
            
                    
                    线性模型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.4" data-path="../ml/melon/ch04.html">
            
                <a href="../ml/melon/ch04.html">
            
                    
                    决策树
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.5" data-path="../ml/melon/ch05.html">
            
                <a href="../ml/melon/ch05.html">
            
                    
                    神经网络
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.6" data-path="../ml/melon/ch06.html">
            
                <a href="../ml/melon/ch06.html">
            
                    
                    支持向量机
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.7" data-path="../ml/melon/ch07.html">
            
                <a href="../ml/melon/ch07.html">
            
                    
                    贝叶斯分类器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.8" data-path="../ml/melon/ch08.html">
            
                <a href="../ml/melon/ch08.html">
            
                    
                    集成学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.9" data-path="../ml/melon/ch09.html">
            
                <a href="../ml/melon/ch09.html">
            
                    
                    聚类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.10" data-path="../ml/melon/ch10.html">
            
                <a href="../ml/melon/ch10.html">
            
                    
                    降维与度量学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.11" data-path="../ml/melon/ch11.html">
            
                <a href="../ml/melon/ch11.html">
            
                    
                    特征选择与稀疏学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.12" data-path="../ml/melon/ch12.html">
            
                <a href="../ml/melon/ch12.html">
            
                    
                    计算学习理论
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.13" data-path="../ml/melon/ch13.html">
            
                <a href="../ml/melon/ch13.html">
            
                    
                    半监督学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.14" data-path="../ml/melon/ch14.html">
            
                <a href="../ml/melon/ch14.html">
            
                    
                    概率图模型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.15" data-path="../ml/melon/ch15.html">
            
                <a href="../ml/melon/ch15.html">
            
                    
                    规则学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.16" data-path="../ml/melon/ch16.html">
            
                <a href="../ml/melon/ch16.html">
            
                    
                    强化学习
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5.1.17" data-path="../ml/melon/ch17.html">
            
                <a href="../ml/melon/ch17.html">
            
                    
                    附录
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../java/">
            
                <a href="../java/">
            
                    
                    Java
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../java/java-web/note.html">
            
                <a href="../java/java-web/note.html">
            
                    
                    java web
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1.1" data-path="../java/java-web/Servlet组织.html">
            
                <a href="../java/java-web/Servlet组织.html">
            
                    
                    Servlet部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.1.2" data-path="../java/java-web/note.html">
            
                <a href="../java/java-web/note.html">
            
                    
                    琐碎的tips
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../java/jni/note.html">
            
                <a href="../java/jni/note.html">
            
                    
                    JNI
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../java/note.html">
            
                <a href="../java/note.html">
            
                    
                    Note
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../java/ej/l1-new-delete.html">
            
                <a href="../java/ej/l1-new-delete.html">
            
                    
                    Effective Java笔记
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../backend/">
            
                <a href="../backend/">
            
                    
                    后端开发
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../backend/design.html">
            
                <a href="../backend/design.html">
            
                    
                    架构设计
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../backend/db.html">
            
                <a href="../backend/db.html">
            
                    
                    数据库
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../java/java-web/note.html">
            
                <a href="../java/java-web/note.html">
            
                    
                    java web
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.3.1" data-path="../java/java-web/Servlet组织.html">
            
                <a href="../java/java-web/Servlet组织.html">
            
                    
                    Servlet部署
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3.2" data-path="../java/java-web/note.html">
            
                <a href="../java/java-web/note.html">
            
                    
                    琐碎的tips
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../backend/spring_boot.html">
            
                <a href="../backend/spring_boot.html">
            
                    
                    Spring boot
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="../python/django/note.html">
            
                <a href="../python/django/note.html">
            
                    
                    django
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6" data-path="../backend/concurrent.html">
            
                <a href="../backend/concurrent.html">
            
                    
                    分布式
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../linux/note.html">
            
                <a href="../linux/note.html">
            
                    
                    Linux && Hardware
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../linux/ubuntu_init.html">
            
                <a href="../linux/ubuntu_init.html">
            
                    
                    Ubuntu安装与初始配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../linux/raspbian/">
            
                <a href="../linux/raspbian/">
            
                    
                    树莓派相关
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.2.1" data-path="../linux/raspbian/rtlwifi.html">
            
                <a href="../linux/raspbian/rtlwifi.html">
            
                    
                    树莓派3B+无线网卡监听模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2.2" data-path="../linux/raspbian/tlwr703n_openwrt.html">
            
                <a href="../linux/raspbian/tlwr703n_openwrt.html">
            
                    
                    TP-LINK TL-WR703N v1.7 openwrt flashing
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../python/">
            
                <a href="../python/">
            
                    
                    Python
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../python/django/note.html">
            
                <a href="../python/django/note.html">
            
                    
                    django
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../python/raw.html">
            
                <a href="../python/raw.html">
            
                    
                    原生模块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../python/design.html">
            
                <a href="../python/design.html">
            
                    
                    设计模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../python/viz.html">
            
                <a href="../python/viz.html">
            
                    
                    可视化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.5" data-path="../python/libs.html">
            
                <a href="../python/libs.html">
            
                    
                    常用库踩坑指南
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../web-front/">
            
                <a href="../web-front/">
            
                    
                    web前端
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../web-front/head_content.html">
            
                <a href="../web-front/head_content.html">
            
                    
                    header div固定，content div填充父容器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../web-front/json_res.html">
            
                <a href="../web-front/json_res.html">
            
                    
                    json接口资源
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../UI/">
            
                <a href="../UI/">
            
                    
                    UI
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../kit/">
            
                <a href="../kit/">
            
                    
                    kit
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../kit/vim/note.html">
            
                <a href="../kit/vim/note.html">
            
                    
                    vim
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../kit/git/note.html">
            
                <a href="../kit/git/note.html">
            
                    
                    git/github
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.2.1" data-path="../kit/git/green_blush.html">
            
                <a href="../kit/git/green_blush.html">
            
                    
                    刷爆github小绿点
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10.3" data-path="../kit/markdown/">
            
                <a href="../kit/markdown/">
            
                    
                    Markdown/gitbook
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.3.1" data-path="../kit/markdown/pieces.html">
            
                <a href="../kit/markdown/pieces.html">
            
                    
                    琐碎知识点
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3.2" data-path="../kit/markdown/gitbook_disqus.html">
            
                <a href="../kit/markdown/gitbook_disqus.html">
            
                    
                    gitbook添加disqus作为评论
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3.3" data-path="../kit/markdown/chrome_mark2_md.html">
            
                <a href="../kit/markdown/chrome_mark2_md.html">
            
                    
                    导出chrome书签为Markdown
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3.4" data-path="../kit/markdown/wx_md.html">
            
                <a href="../kit/markdown/wx_md.html">
            
                    
                    Markdown here && 微信公众号
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10.4" data-path="../kit/latex/">
            
                <a href="../kit/latex/">
            
                    
                    LaTex
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.4.1" data-path="../kit/latex/note.html">
            
                <a href="../kit/latex/note.html">
            
                    
                    LaTex琐记
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10.5" data-path="../kit/ss/">
            
                <a href="../kit/ss/">
            
                    
                    科学上网
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../thinking-in-program/">
            
                <a href="../thinking-in-program/">
            
                    
                    thinking-in-program
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.11.1" data-path="../thinking-in-program/log.html">
            
                <a href="../thinking-in-program/log.html">
            
                    
                    怎样打日志
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="../star.html">
            
                <a href="../star.html">
            
                    
                    我的收藏
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.13" data-path="../pieces.html">
            
                <a href="../pieces.html">
            
                    
                    琐记
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.13.1" data-path="../paper.html">
            
                <a href="../paper.html">
            
                    
                    论文心得
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.14" data-path="../support.html">
            
                <a href="../support.html">
            
                    
                    打赏支持
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >ListView读取DB数据最佳实践</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h2 id="listview&#x8BFB;db&#x6700;&#x4F73;&#x5B9E;&#x8DF5;">ListView&#x8BFB;DB&#x6700;&#x4F73;&#x5B9E;&#x8DF5;</h2>
<blockquote>
<p>&#x5F00;&#x53D1;&#x4E2D;&#x6211;&#x4EEC;&#x5E38;&#x5E38;&#x7528;listview&#x6765;&#x5448;&#x73B0;DB&#x4E2D;&#x7684;&#x6570;&#x636E;&#xFF0C;&#x4F46;&#x5E38;&#x89C1;&#x7684;&#x8BB8;&#x591A;&#x505A;&#x6CD5;&#xFF0C;&#x90FD;&#x6CA1;&#x80FD;&#x5168;&#x9762;&#x8003;&#x8651;&#x8BFB;&#x5199;&#x5E76;&#x53D1;&#xFF0C;&#x5185;&#x5B58;&#x4F18;&#x5316;&#x3002;&#x8FD9;&#x91CC;&#x5E0C;&#x671B;&#x7531;&#x6D45;&#x5165;&#x6DF1;&#x8BA8;&#x8BBA;&#x5F97;&#x5230;&#x4E00;&#x79CD;ListView&#x8BFB;DB&#x7684;&#x6700;&#x4F73;&#x5B9E;&#x8DF5;&#x3002;</p>
</blockquote>
<ul>
<li>&#x9700;&#x6C42;</li>
</ul>
<blockquote>
<p>&#x4ECE;&#x670D;&#x52A1;&#x5668;&#x83B7;&#x53D6; &#x5934;&#x50CF; + &#x540D;&#x5B57;&#xFF0C;&#x653E;&#x5230;ListView&#x4E2D;&#x663E;&#x793A;&#xFF0C;&#x672C;&#x5730;&#x5B58;&#x50A8; &#x5934;&#x50CF;url + &#x540D;&#x5B57;
&#x5E95;&#x90E8;&#x52A0;&#x8F7D;&#x66F4;&#x591A;&#xFF0C;&#x52A0;&#x8F7D;&#x670D;&#x52A1;&#x5668;&#x6570;&#x636E;
&#x65E0;&#x6570;&#x636E;&#x65F6;&#x663E;&#x793A;&#x7A7A;&#x767D;&#x9875;</p>
</blockquote>
<p>&#x8FD9;&#x91CC;&#x53EA;&#x505A;&#x903B;&#x8F91;&#x5C42;&#x8BA8;&#x8BBA;&#xFF0C;UI&#x5C42;&#xFF0C;&#x5219;&#x4E0D;&#x505A;&#x4E0D;&#x5FC5;&#x8981;&#x8BA8;&#x8BBA;&#x3002;</p>
<ul>
<li><p>&#x5206;&#x6790;</p>
<ul>
<li>&#x9996;&#x5148;&#xFF0C;&#x4ECE;&#x670D;&#x52A1;&#x5668;&#x83B7;&#x53D6;&#xFF0C;&#x5C31;&#x6D89;&#x53CA;&#x5F02;&#x6B65;&#x5199;DB&#xFF0C;&#x4EE5;&#x53CA;&#x5728;&#x5199;DB&#x65F6;&#x7684;&#x5E76;&#x53D1;&#x8BFB;</li>
<li>&#x7528;&#x6237;&#x968F;&#x65F6;&#x53EF;&#x80FD;&#x53D1;&#x8D77;&#x5199;DB&#x64CD;&#x4F5C;</li>
<li>&#x662F;&#x5426;&#x80FD;&#x591F;&#x52A0;&#x8F7D;&#x66F4;&#x591A;&#xFF0C;&#x662F;&#x9700;&#x8981;&#x4ECE;server&#x83B7;&#x53D6;&#x7684;&#x53E6;&#x4E00;&#x4E2A;&#x6570;&#x636E;&#xFF0C;listview&#x7684;item&#x6570;&#x91CF;&#x4E0E;&#x8FD9;&#x4E2A;&#x503C;&#x76F8;&#x5173;&#xFF08;&#x5F71;&#x54CD;getCount&#xFF09;</li>
<li>&#x8003;&#x8651;listview&#x6570;&#x636E;&#x6E90;&#x6E05;&#x7A7A;&#x7684;&#x6B63;&#x786E;&#x59FF;&#x52BF;</li>
</ul>
</li>
<li><p>&#x67B6;&#x6784;</p>
<ul>
<li>&#x81F3;&#x5C11;&#x4E09;&#x4E2A;&#x7EBF;&#x7A0B;&#xFF0C;UI&#x4E3B;&#x7EBF;&#x7A0B;&#xFF0C;&#x8BFB;DB&#x7EBF;&#x7A0B;&#xFF0C;&#x7F51;&#x7EDC;&#x8BF7;&#x6C42;&#x5199;DB&#x7EBF;&#x7A0B;</li>
<li>M&#x5C42;&#xFF1A;&#x5934;&#x50CF;url + &#x540D;&#x5B57;</li>
<li>V&#x5C42;&#xFF1A;listview&#xFF0C;footer&#x4F5C;&#x4E3A;&#x52A0;&#x8F7D;&#x66F4;&#x591A;</li>
<li>C&#x5C42;&#xFF1A;adapter</li>
</ul>
</li>
<li><p>Adapter&#x7684;&#x8BBE;&#x8BA1;</p>
<ul>
<li>&#x65B9;&#x6848;&#x4E00; Cursor&#x8BFB;&#x53D6;DB&#xFF0C;&#x904D;&#x5386;Cursor&#x628A;&#x6570;&#x636E;&#x90FD;&#x653E;&#x5230;&#x4E00;&#x4E2A;list&#x653E;&#x5728;&#x5185;&#x5B58;&#x91CC;&#xFF0C;&#x5173;&#x6389;cursor&#xFF0C;listview&#x8BBF;&#x95EE;list&#x4F5C;&#x4E3A;&#x6570;&#x636E;&#x6E90;
&#x4F18;&#x70B9;&#xFF1A;&#x6CA1;&#x6709;cursor&#x5173;&#x95ED;&#x95EE;&#x9898;&#xFF0C;&#x4EE5;&#x53CA;cursorwindow&#x88AB;&#x7F6E;&#x6362;&#x7684;&#x98CE;&#x9669;</li>
</ul>
<p>&#x7F3A;&#x70B9;&#xFF1A; &#x4E00;&#x6B21;&#x8BFB;&#x51FA;DB&#x6570;&#x636E;&#x4F1A;&#x5360;&#x7528;&#x5927;&#x91CF;&#x5185;&#x5B58;&#x7A7A;&#x95F4;&#xFF0C;&#x91C7;&#x53D6;&#x6E38;&#x6807;&#x7A97;&#x53E3;&#x7684;&#x8BBE;&#x8BA1;&#xFF0C;&#x9700;&#x8981;&#x5B9E;&#x73B0;java&#x5C42;&#x7684;cursorwindow&#xFF0C;&#x6210;&#x672C;&#x592A;&#x9AD8;</p>
<ul>
<li>&#x65B9;&#x6848;&#x4E8C; Cursor&#x8BFB;&#x53D6;DB&#xFF0C;listview&#x8BBF;&#x95EE;cursor&#x4F5C;&#x4E3A;&#x6570;&#x636E;&#x6E90;
&#x4F18;&#x70B9;&#xFF1A;cursor&#x673A;&#x5236;&#x81EA;&#x52A8;&#x8FBE;&#x5230;&#x6240;&#x53D6;&#x5373;&#x6240;&#x9700;&#x7684;&#x673A;&#x5236;&#xFF0C;&#x4E0D;&#x4F1A;&#x5360;&#x7528;&#x592A;&#x591A;&#x5185;&#x5B58;&#x3002;</li>
</ul>
<p>&#x7F3A;&#x70B9;&#xFF1A;&#x5FC5;&#x987B;&#x8C28;&#x614E;&#x8003;&#x8651;&#x5173;&#x95ED;Cursor&#x7684;&#x65F6;&#x673A;&#x3002;</p>
</li>
</ul>
<p>&#x5BF9;&#x65B9;&#x6848;&#x4E8C;&#x505A;&#x4E00;&#x4E9B;&#x8BA8;&#x8BBA;&#xFF1A;</p>
<ul>
<li><p>Q &#x4EC0;&#x4E48;&#x65F6;&#x5019;&#x5173;&#x95ED;cursor&#xFF1F;</p>
</li>
<li><p>A &#x5728;cursor&#x4E0D;&#x4E0E;listview&#x76F8;&#x5173;&#x8054;&#x65F6;&#x624D;&#x80FD;&#x5173;&#x95ED;&#xFF0C;&#x5426;&#x5219;listview&#x6ED1;&#x52A8;&#x4E2D;&#xFF0C;getView&#x8C03;&#x7528;cursor.getXXX()&#x65B9;&#x6CD5;&#x4F1A;&#x62A5;IllegalStateException: attemp to open a database or cursor which is already closed</p>
</li>
<li><p>Q &#x600E;&#x6837;&#x8BFB;&#x53D6;&#x65B0;&#x6570;&#x636E;&#xFF1F;</p>
</li>
<li><p>A &#x70B9;&#x51FB;&#x52A0;&#x8F7D;&#x66F4;&#x591A;&#x65F6;&#xFF0C;&#x91CD;&#x65B0;&#x67E5;&#x8BE2;DB&#xFF0C;&#x5F97;&#x5230;&#x65B0;&#x7684;cursor&#xFF08;&#x8BFB;DB&#x7EBF;&#x7A0B;&#xFF09;&#xFF0C;&#x5E76;&#x5C06;&#x65B0;&#x7684;cursor&#x4EA4;&#x7ED9;listview&#x7684;adapter&#xFF08;adapter.setCursor&#xFF09;&#xFF0C;&#x7136;&#x540E;adapter.notifyDataSetChanged()&#xFF08;UI&#x4E3B;&#x7EBF;&#x7A0B;&#xFF09;&#xFF0C;&#x8FD9;&#x5C31;&#x5F15;&#x51FA;&#x53E6;&#x4E00;&#x4E2A;&#x95EE;&#x9898;&#x3002;</p>
</li>
<li><p>Q adapter.setCursor&#x5E94;&#x8BE5;&#x5728;&#x54EA;&#x4E2A;&#x7EBF;&#x7A0B;&#x505A;&#xFF1F;</p>
</li>
<li><p>A &#x5047;&#x8BBE;&#x653E;&#x5728;&#x8BFB;DB&#x7EBF;&#x7A0B;&#xFF0C;setCursor&#x540E;&#xFF0C;&#x901A;&#x77E5;&#x4E3B;&#x7EBF;&#x7A0B;adapter notify&#xFF0C;&#x90A3;&#x4E48;&#x5728;&#x4E3B;&#x7EBF;&#x7A0B;&#x6267;&#x884C;notify&#x524D;&#xFF0C;DB&#x7EBF;&#x7A0B;setCursor&#x540E;&#xFF0C;&#x8FD9;&#x6BB5;&#x65F6;&#x95F4;&#x5185;&#xFF0C;&#x5982;&#x679C;listview&#x7684;adapter&#x6267;&#x884C;getView&#xFF0C;&#x5C31;&#x4F1A;&#x5728;onLayhout&#x65F6;&#x4EA7;&#x751F;IllegalStateException&#xFF0C;item num of listview changed, but not notify&#x3002;&#x5982;&#x679C;&#x4E00;&#x5B9A;&#x8981;&#x653E;DB&#x7EBF;&#x7A0B;&#x505A;setCursor&#x4E5F;&#x884C;&#xFF0C;&#x4E0D;&#x8FC7;&#x8981;&#x5728;onLayout&#x65F6;&#xFF0C;&#x4E0E;setCursor&#x7EBF;&#x7A0B;&#x7ADE;&#x4E89;&#x9501;&#xFF0C;&#x4E00;&#x6765;&#x5F71;&#x54CD;&#x4F53;&#x9A8C;&#xFF0C;&#x4E8C;&#x6765;&#x5F71;&#x54CD;&#x6027;&#x80FD;&#x3002;&#x6240;&#x4EE5;&#x5E94;&#x8BE5;&#x653E;&#x5728;&#x4E3B;&#x7EBF;&#x7A0B;&#x505A;&#x3002;</p>
</li>
<li><p>Q &#x6570;&#x636E;&#x5E93;&#x6570;&#x636E;&#x53D8;&#x52A8;&#x540E;,&#x5E94;&#x8BE5;&#x5982;&#x4F55;&#x6539;&#x53D8;adapter?</p>
</li>
<li><p>A &#x9996;&#x5148;,cursor&#x5728;&#x8BFB;DB&#x7EBF;&#x7A0B;&#x4E2D;&#x5FC5;&#x987B;&#x6267;&#x884C;moveToPosition()&#x6765;&#x8FBE;&#x5230;&#x9884;&#x8BFB;&#x7684;&#x6548;&#x679C;,&#x5426;&#x5219;&#x4F1A;&#x5728;&#x4E3B;&#x7EBF;&#x7A0B;&#x8BFB;DB&#x9020;&#x6210;&#x5EF6;&#x8FDF;&#x3002;&#x6240;&#x4EE5;&#x8981;&#x5728;&#x5B50;&#x7EBF;&#x7A0B;&#x4E2D;&#x8BFB;DB&#xFF0C;&#x800C;setCursor&#x53C8;&#x8981;&#x5728;&#x4E3B;&#x7EBF;&#x7A0B;&#x505A;&#xFF0C;&#x8FD9;&#x5C31;&#x9700;&#x8981;&#x7528;handler&#x4E4B;&#x7C7B;&#x7684;&#x7EBF;&#x7A0B;&#x901A;&#x4FE1;&#x6765;&#x5B9E;&#x73B0;&#xFF0C;&#x56E0;&#x4E3A;&#x5B50;&#x7EBF;&#x7A0B;&#x4E0D;&#x80FD;&#x76F4;&#x63A5;&#x66F4;&#x6539;listview&#x7684;adapter&#x4F7F;&#x7528;&#x7684;cursor&#xFF0C;&#x6240;&#x4EE5;&#xFF0C;DB&#x4E2D;&#x8981;&#x6709;&#x4E00;&#x4E2A;&#x65B0;&#x7684;cursor&#x6765;&#x627F;&#x8F7D;&#x65B0;&#x6570;&#x636E;&#xFF0C;&#x518D;&#x901A;&#x77E5;&#x4E3B;&#x7EBF;&#x7A0B;&#x6362;&#x6389;adapter&#x4E2D;&#x7684;cursor&#x5E76;notifyDataSetChanged&#x3002;&#x6362;&#x6389;adapter&#x4E2D;cursor&#x540E;&#xFF0C;&#x5E94;&#x8BE5;&#x5728;notify&#x540E;&#xFF0C;&#x9A6C;&#x4E0A;&#x5173;&#x95ED;&#x65E7;cursor&#x3002;&#x5F53;&#x7136;&#x8FD9;&#x91CC;&#x53EF;&#x4EE5;&#x505A;&#x4E00;&#x4E2A;&#x4F18;&#x5316;&#xFF0C;&#x5373;&#x5BF9;cursor&#x505A;&#x4E00;&#x4E2A;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#xFF0C;&#x5728;activity&#x751F;&#x547D;&#x5468;&#x671F;&#x7ED3;&#x675F;&#x65F6;&#x6E05;&#x7406;&#x6240;&#x6709;cursor&#x3002;</p>
</li>
<li><p>Q &#x52A0;&#x8F7D;&#x66F4;&#x591A;&#x7684;&#x5B9E;&#x73B0;&#xFF1F;</p>
</li>
<li><p>A &#x4E00;&#x4E2A;footer&#xFF0C;&#x4F1A;&#x8BA1;&#x5165;listview&#x7684;adapter&#x7684;getCount&#x4E2D;&#xFF0C;adapter.count = localData.count + hasFooter?1:0;&#x4E3A;&#x4E86;&#x6B63;&#x786E;&#x663E;&#x793A;&#x52A0;&#x8F7D;&#x66F4;&#x591A;&#xFF0C;&#x5B9E;&#x9645;&#x4E0A;&#x8BF7;&#x6C42;&#x7F51;&#x7EDC;&#x6570;&#x636E;&#x65F6;&#xFF0C;&#x4F1A;&#x8BF7;&#x6C42;&#x670D;&#x52A1;&#x5668;&#x6570;&#x636E;&#x91CF;svrCnt&#xFF0C;hasFooter = svrCnt &gt; localData.count&#xFF1B;&#x800C;localData.count&#x53C8;&#x662F;&#x4E00;&#x6B21;&#x5F02;&#x6B65;&#x67E5;DB&#x7684;&#x8FC7;&#x7A0B;&#xFF0C;&#x6240;&#x4EE5;&#xFF0C;&#x4E3A;&#x4E86;&#x5F97;&#x5230;&#x65B0;&#x7684;&#x6570;&#x636E;&#xFF0C;&#x6211;&#x4EEC;&#x9700;&#x8981;&#x5148;&#x67E5;DB&#x5F97;&#x5230;&#x5F53;&#x524D;position&#x76F8;&#x5173;&#x7684;DB&#x6570;&#x636E;&#xFF08;&#x4E00;&#x4E2A;cursor&#xFF09;&#xFF0C;&#x540C;&#x65F6;&#x505A;&#x4E00;&#x6B21;cursor.getCount()&#x5F97;&#x5230;hasFooter&#xFF08;&#x4E00;&#x4E2A;boolean&#xFF09;&#xFF0C;&#x8FD9;&#x91CC;&#x5C31;&#x6D89;&#x53CA;&#x5230;&#x4E00;&#x4E2A;&#x5237;&#x65B0;&#x7B56;&#x7565;&#x7684;&#x95EE;&#x9898;&#xFF1A;</p>
</li>
<li><p>Q &#x65B0;&#x6570;&#x636E;&#x4E0E;footer&#x5E94;&#x8BE5;&#x5206;&#x522B;&#x5237;&#x65B0;listview&#x8FD8;&#x662F;&#x7B49;&#x4E24;&#x4E2A;&#x6570;&#x636E;&#x90FD;&#x62FF;&#x5230;&#x518D;&#x5237;&#x65B0;listview&#xFF1F;</p>
</li>
<li><p>A &#x5206;&#x522B;&#x5237;&#x65B0;&#x6709;&#x4E24;&#x4E2A;&#x95EE;&#x9898;&#xFF0C;1&#xFF0C;&#x6027;&#x80FD;&#x95EE;&#x9898;&#xFF0C;2&#xFF0C;&#x6570;&#x636E;&#x4E0D;&#x4E00;&#x81F4;&#x95EE;&#x9898;&#xFF0C;&#x8FD9;&#x4E24;&#x4E2A;&#x4E0D;&#x662F;&#x81F4;&#x547D;&#x7684;&#xFF0C;&#x53EA;&#x662F;&#x5F71;&#x54CD;&#x4F53;&#x9A8C;</p>
</li>
</ul>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="chromium/" class="navigation navigation-prev " aria-label="Previous page: Chromium">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="Android_project结构.html" class="navigation navigation-next " aria-label="Next page: Android Project结构">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"ListView读取DB数据最佳实践","level":"1.2.4","depth":2,"next":{"title":"Android Project结构","level":"1.2.5","depth":2,"path":"android/Android_project结构.md","ref":"android/Android_project结构.md","articles":[]},"previous":{"title":"Chromium","level":"1.2.3","depth":2,"path":"android/chromium/README.md","ref":"android/chromium/README.md","articles":[]},"dir":"ltr"},"config":{"plugins":["disqus","github","toggle-chapters","mathjax","mermaid-gb3"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"disqus":{"useIdentifier":false,"shortName":"ahangchen-blog"},"github":{"url":"https://github.com/ahangchen/windy-afternoon"},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"mermaid-gb3":{},"mathjax":{"forceSVG":false,"version":"2.6-latest"},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"toggle-chapters":{}},"theme":"default","author":"陈伟航","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"梦里茶","gitbook":"*"},"file":{"path":"android/listview_db.md","mtime":"2017-06-21T09:19:23.000Z","type":"markdown"},"gitbook":{"version":"3.2.2","time":"2018-05-19T05:00:41.899Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="https://cdnjs.cloudflare.com/ajax/libs/URI.js/1.16.1/URI.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-disqus/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-toggle-chapters/toggle.js"></script>
        
    
        
        <script src="https://cdn.staticfile.org/mathjax/2.6.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-mathjax/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-mermaid-gb3/book/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    <script src="../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.min.js"></script>

    </body>
</html>

